package com.yuyu.demo.spring4.annotation.serviece;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuyu.demo.spring4.annotation.dao.AnDao;

@Service
public class AnService {
	
	@Autowired
	private AnDao dao;
	
	public void hello() {
		System.out.println("Service.....");
		dao.hello();
	}
}
